package com.llmm.eduService.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@ApiModel(value = "EduSubject对象",description = "课程科目")
public class EduSubject implements Serializable {

    //序列化id,确保反序列化成功。
    private static final long seriaVersionUId = 1L;

    //id主键
    private String id;

    //类别名称
    private String title;

    //父id
    private String parentId;

    //排序字段
    private Integer sort;

    //创建时间
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    //更新时间
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;

}
